<?php
include("connect.php");
?>
<?php
if($_REQUEST)
{
	$id = $_REQUEST['parent_id'];	
	?>
	<!--MAJOR 1-->
        	<option value="0" selected="selected"></option>
	<?php $query = "select category_detail_id, category_detail_name from t_detail_category where category_id = ".$id;
	$results = mysql_query( $query);
	while ($rows = mysql_fetch_array($results))
	{?>
		<option value="<?php echo $rows[0];?>"  class="dropoption"><?php echo $rows[1];?></option>
	<?php
	}?>
<?php	
}?>